<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //个人信息
        Schema::create('u_info', function (Blueprint $table) {
            $table->integer('uid')->unique();
            $table->string('nickname')->nullable();
			$table->enum('sex', ['m', 'w']);	
            $table->tinyInteger('age')->nullable();
            $table->string('hpic');
            $table->string('email')->nullable();
            $table->string('name')->nullable();
            $table->string('address')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('u_info');
    }
}
